<?php

namespace app\model\v2;

use app\model\zs\ZsBusiness;
use think\Model;

class V2Device extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'devices';

    // 设置当前模型的数据库连接
    protected $connection = 'mysql';

    public function zsBusiness()
    {
        return $this->belongsTo(ZsBusiness::class, 'business_id', 'id');
    }
}
